/**
 * Copyright 2016-2018 mobaas.com
 */
package com.mobaas.devops.dao;

import java.util.List;

import com.mobaas.devops.model.Admin;

/**
 * 
 * @author billy zhang
 * 
 */
public interface AdminDao {
	
    int deleteAdmin(int id);

    int insertAdmin(Admin record);

    Admin selectAdminById(int id);

    int updateAdmin(Admin admin);

	int selectAdminCount(String keyword);

	List<Admin> selectAdminList(String keyword, int offset, int limit);

	int selectAdminCountByName(String username);

	Admin selectAdminByName(String username);

}